package cn.sunshine.framework.context;

/**
 * @Description cn.sunshine.framework.context
 * @Author Mokairui
 * @Since 2021/12/18
 */
public interface ApplicationEventPublisher {

    /**
     * Notify all listeners registered with this application of an application
     * event. Events may be framework events (such as RequestHandledEvent)
     * or application-specific events.
     * @param event the event to publish
     */
    void publishEvent(ApplicationEvent event);

}
